// MfcDlgMain.h : main header file for the MFCDLGMAIN application
//

#if !defined(AFX_MFCDLGMAIN_H__0BD27277_A6CC_4FB8_A0D2_B13D600B92FB__INCLUDED_)
#define AFX_MFCDLGMAIN_H__0BD27277_A6CC_4FB8_A0D2_B13D600B92FB__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#ifndef __AFXWIN_H__
	#error include 'stdafx.h' before including this file for PCH
#endif

#include "resource.h"		// main symbols

/////////////////////////////////////////////////////////////////////////////
// CMfcDlgMainApp:
// See MfcDlgMain.cpp for the implementation of this class
//

const UINT ID_XD_1	   = 0xffff0001;
const UINT ID_XD_2	   = 0xffff0002;
const UINT II_ICONTEXT = 0;
const UINT II_TEXT	   = 1;
const UINT II_COLOR	   = 2;
const UINT WM_TASKCLICK = WM_USER  + 1020;



#include <io.h>
#include <fcntl.h>
class CBlConsole
{
public:
	void CBlConsole::InitConsole()
	{
		int hCrt; 
		FILE *hf; 
		AllocConsole(); 
		hCrt = _open_osfhandle( 
			(long)GetStdHandle(STD_OUTPUT_HANDLE), 
			_O_TEXT ); 
		hf = _fdopen( hCrt, "w" ); 
		*stdout = *hf; 
		setvbuf( stdout, NULL, _IONBF, 0 ); 
		printf("InitConsoleWindow OK!\n\n"); 
	}
}; 

class CMfcDlgMainApp : public CWinApp
{
public:
	CMfcDlgMainApp();

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMfcDlgMainApp)
	public:
	virtual BOOL InitInstance();
	//}}AFX_VIRTUAL

// Implementation

	//{{AFX_MSG(CMfcDlgMainApp)
		// NOTE - the ClassWizard will add and remove member functions here.
		//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};


/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_MFCDLGMAIN_H__0BD27277_A6CC_4FB8_A0D2_B13D600B92FB__INCLUDED_)
